﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace BusinessLogic
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IRandomNumberGenerator" in both code and config file together.
    /// <summary>
    /// This interface calls the GenerateRandomNumber method from the RandomNumberGeneratorService.
    /// This method is used to generate a random 6-digit number which will be used to report a faulty product
    /// </summary>
    [ServiceContract]
    public interface IRandomNumberGenerator
    {
        /// <summary>
        /// A method which generates a random 6-digit number which will be used to report a faulty product
        /// </summary>
        /// <returns>A 6-digit random number</returns>
        [OperationContract]
        string GenerateRandomNumber();
    }
}
